<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function showName() {
				prompt("提示信息", "这是默认信息");
				prompt("请输入名字", "张三");
				prompt("请输入名字");
			}

//			function showHello() {
//				var j = prompt("请输入你要输出HelloWorld的次数", "");
//				for(var i = 1; i <= j; i++) {
//
//					document.write("<h2>HelloWorld</h2>");
//				}
//			}

			function showHello(count) {
				for(var i = 1; i <=count; i++) {

					document.write("<h2>HelloWorld</h2>");
				}
			}
			function disptime(){
		         var today=new Date();
		         var yyyy=today.getFullYear();
		         var MM=today.getMonth();
		         var dd=today.getDay();
		         var hh=today.getHours();
		         var mm=today.getMinutes()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ;
		         var ss=today.getSeconds();
		         var time=setInterval("disptime()",1000);
		         var r=yyyy+"年"+MM+"月"+dd+"日"+hh+":"+mm+":"+ss;
		         document.getElementById("mytime").innerHTML=r;
		         return r;       
		  
			}
			
			function hidden_b2(){
				document.getElementById("b2").style.visibility="hidden";
				
			}
			function none_b2(){
				document.getElementById("b3").style.display="none";
			}
			function show(){
				if (document.getElementById("art").style.display=="block") {
					document.getElementById("art").style.display="none";
				} else{
					document.getElementById("art").style.display="block";
				}
				
			}
			
			function shu(){
				if () {
					
				} else{
					
				}
			}
			
		</script>
	</head>

	<body>
		<input name="btn" type="button" value="弹出消息框" onclick="javascript:confirm('昆明欢迎您');" />
		<input name="btnn" type="button" value="提问" onclick="showName()" />
		<input name="bbt" type="button" value="点击输出x次HelloWorld" onclick="showHello()" />
		<input name="bbbt"  type="button" value="有参的点击输出x次" onclick="showHello(prompt('请输入你要输出的次数 ：',''))"/>
		<input name="bbb"  type="button" value="点击输出时间" onclick="disptime()"/>
		<input name="btn" type="button" value="弹出time消息框" onclick="alert(disptime())" <!--id="mytime" -->/>
		<div id="mytime">	
		</div>
	 <input name="btn1" type="button" value="隐藏此按钮hidden" onclick="hidden_b2()" id="b2"/>
	 <input name="btn1" type="button" value="隐藏此按钮none" onclick="none_b2()" id="b3"/>
     <input name="btn1" type="button" value="奇特的按钮show" onclick="show()" id="art"/>
	
		
		
	</body>

</html>